﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TaskPersonItem.ascx.cs" Inherits="Controls_Activity_TaskPersonItem" %>
<%@ Register src="UserSelect.ascx" tagname="UserSelect" tagprefix="uc1" %>
<div class="webPanelBorder">
   <div class="webPanelCaption"><asp:Label ID="showTitle" runat="server" Text="选择领单人"></asp:Label></div>
    <div class="webPanelContent">
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
         OnRowDataBound="gridView_RowDataBound" onrowdeleting="gridView_RowDeleting">
        <Columns>        
            <asp:BoundField DataField="OrgName" HeaderText="单位" />
            <asp:BoundField DataField="UserName" HeaderText="姓名" />
            <asp:BoundField DataField="GroupName" HeaderText="组别" />
            <asp:BoundField DataField="Mobile" HeaderText="电话" />        
            <asp:TemplateField HeaderText="工分">
                    <ItemTemplate> 
                        <asp:TextBox ID="WorkTime" runat="server" CssClass="smallInput" Width="80" value='<%#DataBinder.Eval(Container.DataItem,"WorkTime")%>' name="WorkTime" type="text" ></asp:TextBox> 
                    </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="备注">
                    <ItemTemplate>
                        <asp:TextBox ID="Description" runat="server" CssClass="smallInput" Width="120" value='<%#DataBinder.Eval(Container.DataItem,"Description")%>' name="Description" type="text" ></asp:TextBox> 
                        <asp:HiddenField ID ="UserID" runat="server" Value='<%#Eval("UserID") %>' />
                    </ItemTemplate>
            </asp:TemplateField>    
            <asp:CommandField ShowDeleteButton="true" DeleteText="删除" />
        </Columns>
        </ofcc:GridView> 
    </div>
</div>
<uc1:UserSelect ID="UserSelect" runat="server" />  
<asp:HiddenField ID="hfShowWorkTime" runat="server" Value="false"/>




